package com.zy.edu.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-08-18
 */
@TableName("course_type")
@Data
public class CourseType implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "类别名称不能为空")
    private String name;
    private String flag;

    /**
     * 状态：1 在用；2 停用
     */
    @JSONField(serialize = false)
    private Integer status;

}
